//package com.ytjj.common.configuration;
//
//import com.ytjj.common.condition.WxCondition;
//import com.ytjj.common.constants.WxConstants;
//import com.ytjj.common.service.WxService;
//import com.ytjj.common.utils.WXAppConfigUtil;
//import com.ytjj.common.utils.WXAppletConfigUtil;
//import com.ytjj.common.utils.WXH5ConfigUtil;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
//import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
//import org.springframework.boot.context.properties.EnableConfigurationProperties;
//import org.springframework.context.annotation.*;
//
///**
// *
// * @version 1.0
// *
// */
//@Configuration
//@EnableConfigurationProperties(WxConstants.class)
//@Import(WxService.class)
//@Conditional(WxCondition.class)
//public class WxEnableAutoConfiguration {
//
//    @Autowired
//    WxConstants wxConstants;
//
//    /**
//     * 微信组件
//     *
//     * @return AliyunOSSUtil
//     */
//    @Bean
//    public WXAppConfigUtil wxConfigUtil() throws Exception {
//        WXAppConfigUtil wxConfigUtil = new WXAppConfigUtil(wxConstants.getCERT_PATH());
//        wxConfigUtil.setWxConstants(wxConstants);
//        return wxConfigUtil;
//    }
//
//    @Bean
//    public WXAppletConfigUtil wxAppletConfigUtil() throws Exception {
//        WXAppletConfigUtil wxAppletConfigUtil = new WXAppletConfigUtil(wxConstants.getCERT_PATH());
//        wxAppletConfigUtil.setWxConstants(wxConstants);
//        return wxAppletConfigUtil;
//    }
//
//    @Bean
//    public WXH5ConfigUtil wxH5ConfigUtil() throws Exception {
//        WXH5ConfigUtil wxh5ConfigUtil = new WXH5ConfigUtil(wxConstants.getCERT_PATH());
//        wxh5ConfigUtil.setWxConstants(wxConstants);
//        return wxh5ConfigUtil;
//    }
//
//}
